package ro.ss.bb.deployer.logginAspect;

import java.util.Map;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * Replace with your class description.
 */
@Aspect
public class Logging {

    public Logging() {

    }

    @Before("execution(* ro.ss.bb.deployer.invoker.AntInvoker.initProject(..)) && args(file, params)")
    public void initProjectBefore(String file, Map<String, String> params) {
        System.out.println("Initializam proiectul... build file used: " + file);
    }

    @After("execution(* ro.ss.bb.deployer.invoker.AntInvoker.initProject(..))")
    public void initProjectAfter() {
        System.out.println("Proiect initializat...");
    }

}
